package com.itheima.sh.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "tb_sku")
public class Sku {
    @TableId(value = "id",type = IdType.AUTO)//主键自增
    private String id;
    @TableField(value = "name", insertStrategy = FieldStrategy.NOT_NULL)//非空
    private String name;
    @TableField(value = "price", insertStrategy = FieldStrategy.NOT_NULL)
    private int price;
    @TableField(value = "num", insertStrategy = FieldStrategy.NOT_NULL)
    private int num;
    private String image ;
    private Date createTime;
    private int categoryId;
    private String categoryName;
    private String brandName;
}
